package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author ablbb
 * @since 2024-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BedManagment对象", description="")
public class BedManagment extends Model<BedManagment> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房间编号")
    @TableId("room_id")
    @TableField("room_id")
    private String roomId;

    @ApiModelProperty(value = "外鍵，building_management的building_id")
    private String buildingId;

    @ApiModelProperty(value = "编号前缀")
    private String prefix;

    @ApiModelProperty(value = "编号位数")
    private Integer digit;

    @ApiModelProperty(value = "房间数")
    @TableField("room_number")
    private Integer roomNumber;

    @ApiModelProperty(value = "床位数")
    @TableField("bed_number")
    private Integer bedNumber;

    @ApiModelProperty(value = "房间价格")
    private Integer price;

    @ApiModelProperty(value = "是否启用")
    @TableField("is_enabled")
    private Boolean enabled = true;

    @ApiModelProperty(value = "所在楼层")
    private Integer floor;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted = false;

    private String url;



    @Override
    protected Serializable pkVal() {
        return this.roomId;
    }

}
